#include "cybertron/sensor/noise/NoiseBase.hpp"
CYBERTRON_BEGIN

NoiseBase::NoiseBase(NoiseType noiseType)
	: m_noiseType(noiseType), m_value(0.0f)
{
}

NoiseBase::~NoiseBase()
{
}

void NoiseBase::setNoise(const vec3& value)
{
	m_value = value;
}

void NoiseBase::resetNoise()
{
	m_value = vec3(0.0f);
}

std::mt19937& NoiseBase::randomEngine() {
	static thread_local std::mt19937 m_randomEngine(std::random_device{}());
	return m_randomEngine;
}

CYBERTRON_END